-- GENERATED SPELL FOR [Dreadmaul Mauler] --


function spell0_5977(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5977', 633, 1)
end

function Sorts_5977(pUnit, Event)
local choix_sorts_5977 = math.random(0, 0)
if choix_sorts_5977 == 0 then
pUnit:RegisterEvent('spell0_5977', 1, 1)
end
end

function mob5977_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5977', math.random(1500, 3000), 1)
end

function mob5977_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5977_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5977_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5977, 1, 'mob5977_Action')
RegisterUnitEvent(5977, 2, 'mob5977_Leave')
RegisterUnitEvent(5977, 3, 'mob5977_Kill')
RegisterUnitEvent(5977, 4, 'mob5977_Die')
